

import type { Isystemgroupdata } from './entity';
import type { IPageParams } from '@/types/table'
import request from '@/api/request'

export function getPageList(params: IPageParams) {
  return request({
    url: `/admin/system/group/data/list`,
    method: 'get',
    params,
    loading: true
  })
}

export function systemgroupdataDel(data) {
  return request({
    url: `/admin/system/group/data/delete`,
    method: 'post',
    data
  })
}
export function systemgroupdatainfo(id) {
  return request({
    url: `/admin/system/group/data/info`,
    method: 'get',
    params: { id }
  })
}
export function systemgroupdataSelect(id) {
  return request({
    url: `/admin/system/group/data/select`,
    method: 'get'
  })
}

export function systemgroupdataAddup(data) {
  return request({
    url: `/admin/system/group/data/${!data.id ? 'save' : 'updateEz'}`,
    method: 'post',
    data,
    params: { id: data.id }
  })
}
export function getFormConfigInfo(params) {
  return request({
    url: '/admin/system/form/temp/info',
    method: 'GET',
    params
  })
}